package auto;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class ClickCommand implements Command{
    private final String elementLocation;
    public ClickCommand(String elementLocation) {
        this.elementLocation = elementLocation;
    }

    @Override
    public void run(WebDriver driver) {
        driver.findElement(new By.ByCssSelector(elementLocation)).click();

    }
}
